import request from '@/utils/request'

// 查询猪病病症列表
export function listDisease(query) {
  return request({
    url: '/wuyi/disease/list',
    method: 'get',
    params: query
  })
}

// 查询猪病病症详细
export function getDisease(id) {
  return request({
    url: '/wuyi/disease/' + id,
    method: 'get'
  })
}

// 新增猪病病症
export function addDisease(data) {
  return request({
    url: '/wuyi/disease',
    method: 'post',
    data: data
  })
}

// 修改猪病病症
export function updateDisease(data) {
  return request({
    url: '/wuyi/disease',
    method: 'put',
    data: data
  })
}

// 删除猪病病症
export function delDisease(id) {
  return request({
    url: '/wuyi/disease/' + id,
    method: 'delete'
  })
}
